package cn.aop.xml.service.impl;


import cn.aop.xml.service.ICustomService;

/**
 * @author yexi
 */
public class CustomServiceImpl implements ICustomService {
    @Override
    public void save(String username, String password, int num) {
        System.out.println("数据库即将保存信息：用户名-" + username + "，密码-" + password);
        if (num == 0) {
            throw new RuntimeException("业务处理发生了异常");
        } else {
            System.out.println("保存成功，这是第" + num + "次");
        }
    }
}
